package com.zlp.dto.resource;

import com.alibaba.fastjson.JSON;
import com.zlp.enums.resource.JumpTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
/**Banner返回参数*/
public class BannerResp implements Serializable {

    /**首页Banner明细返回参数*/
    public List<BannerDetail> homeBannerDetailList = initData();


    @Data
    /**Banner明细返回参数*/
    public static class BannerDetail extends ResourceBaseResp {

        /**图片*/
        private String picture;

    }

    public static List<BannerDetail>  initData(){

        List<BannerDetail> homeBannerDetailList = new ArrayList<>();

        BannerDetail bannerDetail1 = new BannerDetail();
        bannerDetail1.setPicture("https://img2.baidu.com/it/u=617579813,2960860841&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1670086800&t=506692e2852a258d34315eb30f27a90c");
        bannerDetail1.setJumpType(JumpTypeEnum.JUMP_PRODUCT.getCode());
        bannerDetail1.setJumpObjId("1234");
        homeBannerDetailList.add(bannerDetail1);

        BannerDetail bannerDetail2 = new BannerDetail();
        bannerDetail2.setPicture("https://img2.baidu.com/it/u=1003272215,1878948666&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1670086800&t=2bd4037676cf6d41cd9b151f56bb5683");
        bannerDetail2.setJumpType(JumpTypeEnum.JUMP_ARTICLE.getCode());
        bannerDetail2.setJumpObjId("1234");
        homeBannerDetailList.add(bannerDetail2);

        BannerDetail bannerDetail3 = new BannerDetail();
        bannerDetail3.setPicture("https://www.baidu.com/link?url=dLHdK-e80apzy5iVC0Ehhp_X-_Vq3qOJHeBpVI34JxGrFeaeLHal7LoR8hItZpg5-5dQs3EunAXlY-PyQ6SDY9YHS_tyfPfsUmTpLi3_ZPnziFuBi_6DKDnMM_wxnH6FMpCdyCEQPXid1gVWRlVXxXEmJlfycypM9ZC-nwyX2ac8fSJQbNTjwvyCXugMPRCybNJiqQnMiaMM9ESgT-A_HGIc1f6nDB9cQstflNi44VmcjW49jgoicXsq9z1-NcRssmk97Vr-r9toFLkux7VDxZHRnCrI6Y6ZnM2v-kkwBgdW0fWKjhCYOLnu7N37DkwcA6fwbYTAIVvu3Oxo62Q7Wx6P3xzOkvXPMSclxrgpxDgRKjJrRfHXU9MmiQHmVBWPeyrw_B-A2cYbjU918WmzaXi7QnN7XILus1pFAE4LyMyHWjXoXkeQaO4ZqOPytqVpGExIwDDBAx6GcnXu9MIEHogbGTL4em17hlhbIA4KOOTpDvmFwnwVuPg53Jdr3OQVWfXzPOicnQ3TBVpI-AGhOrprm9NUuuPXG4uMcP0GO9pC51O4vDELS-LEw6VFjShV3b6wma3SosXe51tKzg7aA5Js583QnmlDHAQpL64pvR2RhDLg-fyCJvSGAzG6FIXpVzC9KO913l1O0WOmQs8LweowD74edZX6AtACBfVZhNi&wd=&eqid=b8f1d5fa0042c9ba0000000463895b60");
        bannerDetail3.setJumpType(JumpTypeEnum.JUMP_ACTIVITY.getCode());
        bannerDetail3.setJumpObjId("1234");
        homeBannerDetailList.add(bannerDetail3);

        BannerDetail bannerDetail4 = new BannerDetail();
        bannerDetail4.setPicture("https://img2.baidu.com/it/u=1395980100,2999837177&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1670086800&t=6882cecc8f4031b7fda10e5b58021c69");
        bannerDetail4.setJumpType(JumpTypeEnum.JUMP_LINK.getCode());
        bannerDetail4.setJumpObjId("1234");
        homeBannerDetailList.add(bannerDetail4);
        return homeBannerDetailList;
    }





}
